package com.bestcem.xm.award.controller.param.award;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 查询最近一周奖励请求数量和请求状态为请求通过的请求数量
 * @author sh.pei <sh.pei@idiaoyan.com>
 * @version v1.0
 * @date 2021/8/23 11:03
 */
@NoArgsConstructor
@Getter
@Setter
@ToString
public class GetWeekRequestStatsParam implements Serializable {

    /**
     * 奖励id
     */
    @JsonProperty(value = "award_id")
    @NotBlank(message = "奖励id为空！")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "奖励id异常！")
    private String awardId;

    /**
     * 公司id
     */
    private String orgId;
}
